<%--
  Created by IntelliJ IDEA.
  User: guo
  Date: 2018/3/20
  Time: 20:47
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html>
<head>
    <title>国家信息</title>
</head>
<body>
<h1 align="center">修改国家信息</h1>


<form action="${pageContext.request.contextPath}/app/updateCountryMessage">
    <%--传入pid，属性设置隐藏，不要忘记设置name--%>

    <input type="hidden" name="cname" value="${c.name}">
    <table align="center">
        <tr>
            <td>Code</td>
            <td><input type="text" name="code" value="${c.code}"></td>
        </tr>
        <tr>
            <td>Name</td>
            <td><input type="text" name="name" value="${c.name}"></td>
        </tr>
        <tr>
            <td>Region</td>
            <td><input type="text" name="region" value="${c.region}"></td>
        </tr>
        <tr>
            <td>SurfaceArea</td>
            <td><input type="text" name="surfaceArea" value="${c.surfaceArea}"></td>
        </tr>
        <tr>
            <td>IndepYear</td>
            <td><input type="text" name="indepYear" value="${c.indepYear}"></td>
        </tr>
        <tr>
            <td>Population</td>
            <td><input type="text" name="population" value="${c.population}"></td>
        </tr>
        <tr>
            <td>LifeExpectancy</td>
            <td><input type="text" name="lifeExpectancy" value="${c.lifeExpectancy}"></td>
        </tr>
        <tr>
            <td>GNP</td>
            <td><input type="text" name="gNP" value="${c.gNP}"></td>
        </tr>
        <tr>
            <td>HeadOfState</td>
            <td><input type="text" name=" headOfState" value="${c. headOfState}"></td>
        </tr>
        <tr>
            <td>Capital</td>
            <td><input type="text" name="capital" value="${c.capital}"></td>
        </tr>
        <tr>
            <td>Code2</td>
            <td><input type="text" name="code2" value="${c.code2}"></td>
        </tr>
        <tr>
            <td><input type="submit" value="提交"></td>
            <td><input type="button" value="退出"
                       onclick="javascript:window.location.href ='${pageContext.request.contextPath}/app/findAll'"></td>
        </tr>
    </table>
</form>
</body>
</html>
